package com.dmxh.controller;

import com.dmxh.result.Result;
import com.dmxh.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

@RestController
@RequestMapping("/order")
public class OrderController {

    @Autowired
    private OrderService orderService;

    @PostMapping("/saveOrder")
    public Result saveOrder(@RequestBody Map<String,Object> map) {
        orderService.saveOrder(map);
        return Result.ok();
    }
}
